package com.sam.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.ListView;

import com.sam.jifenbao.R;

/**
 * Created by Administrator on 2016/6/2.
 */
public class FooterLogoListView extends ListView {
    public FooterLogoListView(Context context) {
        this(context,null);
    }

    public FooterLogoListView(Context context, AttributeSet attrs) {
        this(context, attrs,0);
    }

    public FooterLogoListView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        View logoView = View.inflate(context, R.layout.footer_logo_layout,null);
        AbsListView.LayoutParams lp = new AbsListView.LayoutParams(AbsListView.LayoutParams.MATCH_PARENT, AbsListView.LayoutParams.WRAP_CONTENT);
        logoView.setLayoutParams(lp);
        addFooterView(logoView);
    }

}
